package com.shilei.spring.v2;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @description:
 * @author: 81271
 * @date: 2020-04-19 8:55
 */
@Aspect
public class TimeProxy {
    @Before(value = "execution(void com.shilei.spring.v2.Tank.run())")
    public void before () {
        System.out.println("before:" + System.currentTimeMillis());
    }


    @After(value = "execution(void com.shilei.spring.v2.Tank.run())")
    public void after () {
        System.out.println("after:" + System.currentTimeMillis());
    }
}
